
#当前所有目录下的文件放入变量DIR_SRCS
AUX_SOURCE_DIRECTORY(./ DIR_SRCS) 

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/_vendor_/opencv/include)
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/_vendor_/opencv/library/x64/vc15/lib)
# LINK_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../_vendor_/opencv/library/x64/vc15/lib)
# LINK_DIRECTORIES(R:/Z_BACKUP_ORDER/_PROJECT_/OPENCV/OpenCV_Course-cmake/_vendor_/opencv/library/x64/vc15/lib)

INCLUDE_DIRECTORIES(./opencv_cpp_course)
INCLUDE_DIRECTORIES(./opencv_cpp_demo)

#R:/Z_BACKUP_ORDER/_PROJECT_/OPENCV/OpenCV_Course-cmake/_vendor_/opencv/library/x64/vc15/lib
#  $(SolutionDir)opencv/build/include/opencv2
#  $(SolutionDir)opencv/build/include
#  $(SolutionDir)opencv/build/x64/vc15/lib
#_vendor_\opencv\library\x64\vc15\lib


#添加可执行程序
ADD_EXECUTABLE(main ${DIR_SRCS})

#静态lib
TARGET_LINK_LIBRARIES(main
PRIVATE
opencv_world440d.lib
)

 

# LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/../_dependency_/glfw/glfw-3.3.8.bin.WIN64/lib-vc2022)
# # LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/../_dependency_/glew/glew-2.1.0/lib/Release/x64)

# # file(GLOB GLFW_LIB_FILE ${PROJECT_SOURCE_DIR}/../_dependency_/glfw/glfw-3.3.8.bin.WIN64/lib-vc2022)
# # file(GLOB GLFW_LIB_FILE ${PROJECT_SOURCE_DIR}/../_dependency_/glfw/glfw-3.3.8.bin.WIN64/lib-vc2022)
 
# #将当前目录下的所有文件都放入变量DIR_SRCS内
# AUX_SOURCE_DIRECTORY(./ DIR_SRCS) 
# AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/../_dependency_/glfw/glfw-3.3.8.bin.WIN64/lib-vc2022 GLFW_LIB_FILES) 

# #添加可执行程序
# ADD_EXECUTABLE(ImGuiDemoGlad ${DIR_SRCS})

# #将子目录生成的库链接过来
# TARGET_LINK_LIBRARIES(ImGuiDemoGlad 
# PRIVATE
# glfw3.lib
# opencv_world440.lib 
 
# )

